import http from "@/api/index.ts";
// 代理路由
const routers = "web";
export const login = (param: any) => {
  // return Promise.resolve({data:{token:"12312312323"}});
  return http.get<any>(
    `/api/oauth/Login?code=&grant_type=password&jnpf_ticket=&password=${param.password}&timestamp=0.11087835278371805&account=${param.username}`,
    {},
    { baseUrlKey: routers, loading: true }
  );
};
export const loginToken = (param: any) => {
  // return Promise.resolve({ code: 200, data: { token: "12312312323", msg: param } });
  return http.post<any>(
    `/api/oauth/ospauth/Login?token=${param.token}&state=${param.state}`,
    {},
    { baseUrlKey: routers, loading: true }
  );
};
